export default [
    {
        path: "/",
        name: "login",
        component: ()=>import("@/views/login/index")
    },
    {
        path: "*",
        name: "404",
        component: ()=>import("@/views/404")
    },
    {
        path: "/oa",
        component: ()=>import("@/views/officeAutomation/index"),
        redirect: "/oa/system",
        children: [
            {
                path: "system",
                component: {render: c => c("router-view")},
                redirect: "/oa/system/info",
                children: [
                    {
                        path: "info",
                        name: "info",
                        component: ()=>import("@/views/officeAutomation/system/info"),
                        meta: {
                            activeMenu: 'info'
                        }
                    },
                    {
                        path: "alarm",
                        name: "alarm",
                        component: ()=>import("@/views/officeAutomation/system/alarm"),
                        meta: {
                            activeMenu: 'alarm'
                        }
                    }
                ]
            },
            {
                path: "backupDB",
                name: "backupDB",
                component: ()=>import("@/views/officeAutomation/backupDB/backupDB"),
                meta: {
                    activeMenu: 'backupDB'
                }
            },
            {
                path: "backup",
                name: "backup",
                component: ()=>import("@/views/officeAutomation/backupRestore/backupRestore"),
                meta: {
                    activeMenu: 'backup'
                }
            },
            {
                path: "dataSync",
                name: "dataSync",
                component: ()=>import("@/views/officeAutomation/dataSync/dataSync"),
                meta: {
                    activeMenu: 'dataSync'
                }
            },
            {
                path: "auth",
                name: "auth",
                component: ()=>import("@/views/officeAutomation/auth/auth"),
                meta: {
                    activeMenu: 'auth'
                }
            },
            {
                path: "test",
                name: "test",
                component: ()=>import("@/views/officeAutomation/test/test"),
                meta: {
                    activeMenu: 'test'
                }
            },
            {
                path: "breakdown",
                name: "breakdown",
                component: ()=>import("@/views/officeAutomation/breakdown/breakdown"),
                meta: {
                    activeMenu: 'breakdown'
                }
            },
            {
                path: "copy",
                name: "copy",
                component: ()=>import("@/views/officeAutomation/copy/copy"),
                meta: {
                    activeMenu: 'copy'
                }
            },
        ]
    }
]